{include file="$AdminFullPath/skins/$DefaultSkin/header.tpl" title=foo}

<table width="100%">
  <tr>
    <td class="module_title" nowrap>
      <a href="index.php">{$SiteTitle}</a> &raquo; <a href="{$PHPSELF}?mod={$mod}">{$OrbitFAQTitle} </a>
    </td>
    <td class="action_buttons" nowrap>
      <table>
        <tr>
          <td width="15" nowrap>
            <a href="{$PHPSELF}?mod={$mod}&action=create"><img src="skins/{$DefaultSkin}/images/add.png" style="border: 0px; vertical-align: bottom;" alt="Create New FAQ" title="Create New Category"></a>
          </td>
          <td align="center" width="100%">
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<br />

{if $message != ''}
<table width="100%" class="message_tbl">
  <tr>
    <td style="vertical-align: bottom;" width="20">
      <img src="skins/{$DefaultSkin}/images/notice.png">
    </td>
    <td class="message" nowrap>
      {$message}
    </td>
  </tr>
</table>
<br />
{/if}

<table cellspacing="1" class="index_body">
  <tr>
    <td class="row3 one">id</td>
    <td class="row3 two">title & desc</td>
    <td class="row3 two" nowrap><center>status</center></td>
    <td class="row3 two" nowrap><center>faq</center></td>
    <td class="row3 two" nowrap><center>order</center></td>
    <td class="row3 two" colspan="2" nowrap><center>category actions</center></td>
    <td class="row3 two" nowrap colspan="2"><center>question</center></td>
  </tr>
  {section name=CATListing loop=$CATListing}
  <tr>
    <td class="row{$CATListing[CATListing].cat_row} one">{$CATListing[CATListing].cat_id}</td>
    <td class="row{$CATListing[CATListing].cat_row} two">
      <h3>{$CATListing[CATListing].cat_title}</h3>
      {$CATListing[CATListing].cat_desc}<br />
    </td>
    <td class="row{$CATListing[CATListing].cat_row} two" nowrap>
      {if $CATListing[CATListing].cat_status == '1'}
        <a href="{$PHP_SELF}?mod={$mod}&ca={$CATListing[CATListing].cat_id}&action=chstatus&posted=0">disable</a>
      {else}
        <a href="{$PHP_SELF}?mod={$mod}&ca={$CATListing[CATListing].cat_id}&action=chstatus&posted=1">enable</a>
      {/if}
    </td>
    <td class="row{$CATListing[CATListing].cat_row} one" nowrap><a href="{$PHP_SELF}?mod={$mod}&faq={$CATListing[CATListing].cat_faq_id}">{$CATListing[CATListing].cat_faq}</a></td>
    <td class="row{$CATListing[CATListing].cat_row} one" nowrap>
      <a href="{$PHP_SELF}?mod={$mod}&action=move&posted=-15&ca={$CATListing[CATListing].cat_id}">move up</a><br />
      <a href="{$PHP_SELF}?mod={$mod}&action=move&posted=15&ca={$CATListing[CATListing].cat_id}">move down</a>
    </td>
    <td class="row{$CATListing[CATListing].cat_row} one"><a href="{$PHP_SELF}?mod={$mod}&action=modify&ca={$CATListing[CATListing].cat_id}">modify</a></td>
    <td class="row{$CATListing[CATListing].cat_row} one"><a href="{$PHP_SELF}?mod={$mod}&action=delete&ca={$CATListing[CATListing].cat_id}">delete</a></td>
    <td class="row3 one"><a href="{$PHP_SELF}?mod=questions&action=create&ca={$CATListing[CATListing].cat_id}">create</a></td>
    <td class="row3 one"><a href="{$PHP_SELF}?mod=questions&ca={$CATListing[CATListing].cat_id}">manage</a></td>
  </tr>
  {/section}
</table>

{include file="$AdminFullPath/skins/$DefaultSkin/footer.tpl"}